<template>
  <div class="page has-navbar" v-nav="{title: '公告详情', showBackButton: true}">
    <div class="page-content padding padding-top" style="background-color:#fff;">
      <h3 class="notice-title">{{notice.noticeTitle}}</h3>
      <p class="notice-date">{{notice.noticeCreateTime | filterDateForDay}}</p>
      <p class="notice-content">{{notice.noticeContent}}</p>
    </div>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        notice:{},
      }
    },
    created(){
      var _this = this;
      axios.get(baseUrl+'/controller/getNoticeList',{params:{
          marketId:sess.get('userSession').marketId,
          noticeId:this.$route.params.id,
        }
      })
      .then(function(res){
        _this.notice = res.data.result[0].notice
      })
    },
    methods: {

    }
  }
</script>
<style scoped>
  .notice-title{
    text-align: center;
    padding-top: 10px;
  }
  .notice-date{
    text-align: right;
    padding-right: 15px;
    font-size: 12px;
    color: #999;
  }
  .notice-content{
    text-indent: 2em;
  } 
</style>
